package com.controller;

import com.pojo.Department;
import com.service.DepartmentService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/sys/department")
public class DepartmentHandler {
    @Resource
    private DepartmentService departmentService;
    @RequestMapping("/searchByDepartment")
    public Department searchByDepartment(String id){
        return departmentService.searchByDepartment(id);
    }
}
